package com.oa.pm.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel("延后休假申请")
@TableName("pm_postponed_leave_apply")
@Data
public class PostponedLeaveApply extends Model<PostponedLeaveApply> {

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("剩余天数")
    private Double surplusDay;

    @ApiModelProperty("备注")
    private String remark;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
